package hk.linkcredit.walletservice.wallet.domain.entity;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.time.LocalDateTime;
import java.util.Date;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Builder;
import lombok.Getter;
import lombok.Setter;

/**
 * <p>
 * app用户
 * </p>
 *
 * @author LinkCredit
 * @since 2022-06-09 17:39:38
 */
@Getter
@Setter
@Builder
@TableName("app_user")
@ApiModel(value = "AppUser对象", description = "app用户")
public class AppUser {

    @ApiModelProperty("序号")
    @TableId(value = "user_id", type = IdType.AUTO)
    private Long userId;

    @ApiModelProperty("注册渠道")
    @TableField("`channel`")
    private String channel;

    @ApiModelProperty("区号")
    @TableField("country_code")
    private String countryCode;

    @ApiModelProperty("手机号")
    @TableField("phone")
    private String phone;

    @ApiModelProperty("用户uuid")
    @TableField("user_uuid")
    private String userUuid;

    @ApiModelProperty("用户名")
    @TableField("user_name")
    private String userName;

    @ApiModelProperty("bvn")
    @TableField("bvn")
    private String bvn;

    @ApiModelProperty("推荐人邀请码")
    @TableField("recommend_code")
    private String recommendCode;

    @ApiModelProperty("邀请码")
    @TableField("invite_code")
    private String inviteCode;

    @ApiModelProperty("0 停用；1正常使用")
    @TableField("invite_code_status")
    private String inviteCodeStatus;

    @ApiModelProperty("昵称")
    @TableField("nick_name")
    private String nickName;

    @ApiModelProperty("密码")
    @TableField("`password`")
    private String password;

    @ApiModelProperty("状态")
    @TableField("state")
    private String state;

    @ApiModelProperty("注册时间")
    @TableField(value = "create_time", fill = FieldFill.INSERT)
    private Date createTime;

    @ApiModelProperty("更新时间")
    @TableField(value = "update_time", fill = FieldFill.INSERT_UPDATE)
    private Date updateTime;


}
